//
//  List.m
//  MOdel套Model
//
//  Created by dllo on 16/5/18.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "List.h"

@implementation List
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}
- (void)setList:(NSMutableArray *)list
{
    _list = list;
    NSMutableArray *array = [NSMutableArray array];
    for (NSDictionary *dic in _list) {
        Model *model = [[Model alloc] init];
        [model setValuesForKeysWithDictionary:dic];
        [array addObject:model];
        
    }
    _list = [NSMutableArray arrayWithArray:array];
}


@end
